<template>
  <div>
    <div class="demo">
      <h1 @click="showName">学校：{{name}}</h1>
      <h1>地址：{{address}}</h1>
    </div>
  </div>
</template>

<script>
// 局部引入
// import {hunhe,hunhe2} from "@/mixin";

export default {
  name: "School",
  data() {
    return {
      name: "北京大学",
      address: "北京",
      x: 2000
    }
  },
  // mixins: [hunhe,hunhe2],
  methods: {

  },
  created() {
    console.log('vc==',this)
  },

  mounted() {
    console.log('hunhe!!!!!!!!')
  }
}
</script>

<style scoped>
  .demo {
    background: orange;
  }
</style>